/* USER CODE BEGIN Header */
/**
 ******************************************************************************
 * @file           : menu.h
 * @brief          : Header for menu.c file.
 *                   This file contains the common defines of the application.
 ******************************************************************************
 * @attention
 *
 * Copyright (c) 2023 STMicroelectronics.
 * All rights reserved.
 *
 * This software is licensed under terms that can be found in the LICENSE file
 * in the root directory of this software component.
 * If no LICENSE file comes with this software, it is provided AS-IS.
 *
 ******************************************************************************
 */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MENU_H
#define __MENU_H

#ifdef __cplusplus
extern "C"
{
#endif

    /* Includes ------------------------------------------------------------------*/
#include "oled.h"
#include "dht11.h"
#define MENU_SELECT 1
    /* Private includes ----------------------------------------------------------*/
    /* USER CODE BEGIN Includes */

    /* USER CODE END Includes */

    /* Exported types ------------------------------------------------------------*/
    /* USER CODE BEGIN ET */

    /* USER CODE END ET */

    /* Exported constants --------------------------------------------------------*/
    /* USER CODE BEGIN EC */

    /* USER CODE END EC */

    /* Exported macro ------------------------------------------------------------*/
    /* USER CODE BEGIN EM */

    /* USER CODE END EM */

    /* Exported functions prototypes ---------------------------------------------*/

    /*
        菜单阈值结构体
        @param TEMP 待设置的阈值温度
    */
    struct menu_threshold
    {
        float temp;
    };

    /*
        菜单阈值结构体
        @param TEMP 待设置的阈值温度
    */
    typedef struct menu_threshold menu_threshold_t;

    void key_scan(void);
    void ui_proc(u8g2_t *u8g2, dht_t *dht_data, menu_threshold_t *threshold);
    void menu_init(u8g2_t *u8g2);

    /* USER CODE BEGIN EFP */

    /* USER CODE END EFP */

    /* Private defines -----------------------------------------------------------*/
    /* USER CODE BEGIN Private defines */

    /* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif
